package ChatInDifferentDimensionsAutoTest;


import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;

import java.util.List;
import java.util.Set;

public class OpenAndCloseBrowser {
    static WebDriver webDriver;
    static ChromeOptions options = new ChromeOptions();

    static WebDriver webDriver1;
    @BeforeAll
    static void  openBrowser() {
        options.addArguments("--incognito");
        webDriver1 = new ChromeDriver(options);
        webDriver = new ChromeDriver();
    }

    @AfterAll
    static void closeBrowser() {
        webDriver.quit();
        webDriver1.quit();
    }
}